package com.elcom.roaming.module.collection.match;

import com.elcom.roaming.common.util.match.ObjectValue;

public class UIValue extends ObjectValue{
	public static final char U0 = 'U';
	public static final char I0 = 'I';
	
	private String number;
	
	public UIValue(char type, String number) {
		this.type = type;
		this.number = number;
	}

		public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public boolean isIMSI(){
		return type == U0;
	}
	
	public boolean isMSISDN(){
		return type == I0;
	}
	
	@Override
	public String toString() {
		return "type=" + type +
				(type=='U' ? "|imsi=" : "|msisdn=") + number;
	}

}
